//
//  TempViewController.swift
//  sinaWeibo
//
//  Created by liii on 16/7/30.
//  Copyright © 2016年 liii. All rights reserved.
//

import UIKit

class TempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        // 屏蔽跳转后动画导致的延迟画面问题
        self.view.backgroundColor = UIColor.whiteColor()
        
        navigationItem.title = "第\(navigationController?.childViewControllers.count ?? 0)个控制器"
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", style: .Plain, target: self, action: "push")
        
    }
    
    @objc private func push() {
        let tempVC = TempViewController()
        navigationController?.pushViewController(tempVC, animated: true)
    }
    
}
